{% extends "base_ext.html" %}
{%block title%}登录{%endblock%}
{%block content%}

  <form class="form-signin" action="/home/signin/" method="post">
        {% csrf_token %}
        <h2 class="form-signin-heading">登录</h2>
        {% if form.username.errors %}<span style="color: #FF0000;"> {{ form.username.errors|join:", " }}</span>{% endif %}
        {{form.username}}
        {% if form.password.errors %}<span style="color: #FF0000;"> {{ form.password.errors|join:", " }}</span>{% endif %}
        {{form.password}}
        <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
      </form>


{%endblock%}